#生成镜像文件
FROM java:8
#和后台端口一致
EXPOSE 8070
ADD ruoyi-admin.jar ruoyi-admin.jar

ENV LANG C.UTF-8
#设置时区
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java", "-jar", "ruoyi-admin.jar"]
